package coreAuction;
import java.util.ArrayList;

public class ItemList {
	private ArrayList<Item> items;

	public ItemList() {
		this.items = new ArrayList<Item> ();
	}
	
	public void add(Item l) {
		items.add(l);
	}
	
	public Item find(String id) {
		for (Item i : items) {
			if (i.getItemID().equals(id)){
				return i;
			}
		}
		return null;
	}
	
	public String getItemList() {
		String report = "";
		for (Item i : items){
			report += i.getItemReport();
		}
		return report;
	}
	

}
	
	

